import { NgModule } from '@angular/core';
import { BrowserModule, Title } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';


import { HomeModule } from './home.module';
import { UserModule } from './user.module';
import { DepartmentModule } from './department.module';
import { AssetModule } from './asset.module';
import { AuthModule } from './auth.module';
import { ForumModule } from './forum.module';
import { ShareModule } from './share.module';
import { AppRoutingModule } from '../router/app';

import { DialogService } from '../service/DialogService';

import { AppComponent } from '../components/app/app';
import { HeaderComponent } from '../components/header/header';
import { FooterComponent } from '../components/footer/footer';
import { PageNotFoundComponent } from '../components/pageNotFound/pageNotFound';
import { ConfirmDialogComponent } from '../components/confirmDialog/confirmDialog';



@NgModule({
  imports:      [ BrowserModule, ShareModule, HttpClientModule, AuthModule, ForumModule,
    HomeModule,  UserModule, AssetModule, DepartmentModule, AppRoutingModule, ],
  declarations: [  HeaderComponent, AppComponent, FooterComponent, PageNotFoundComponent, ConfirmDialogComponent ],
  entryComponents: [ ConfirmDialogComponent ],
  providers: [
    DialogService,
    Title,
  ],
  bootstrap:    [ AppComponent ]
})
export class AppModule { }
